package com.feige.openfeigh;

import com.feige.constant.Constants;
import com.feige.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author feige<br />
 * @ClassName: UserCourseService <br/>
 * @Description: <br/>
 * @date: 2021/8/30 22:55<br/>
 */
@Component
@FeignClient(Constants.XIAOFEI_CLOUD_CLASSROOM_COURSE)
public interface UserCourseService {

    @GetMapping("/course/user-course/ids/{courseId}/{userId}")
    R<List<Object>> getUserIdsByCourseId(@PathVariable("courseId") String courseId, @PathVariable("userId") String userId);
}
